<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$category = new Category_model();

$news = new News_model();
$slide['best-selling'] = $news->get_new_by_option(array("best_selling"=>1), 5);
$slide['num'] = round(count($slide['best-selling'])/2);
//print_r($slide);exit;
$this->smarty->assign('category',$category);
$this->smarty->assign('slide',$slide);
$this->smarty->view('frontend/subs/best_selling_slide');
?>
